<template>
  <el-row>
    <el-col :span="4" v-for="(item, key) in list" :key="key">
      <el-card :body-style="{ padding: '0px' }">
        <el-image
          style="width: 50px; height: 50px"
          :src="imageUrl + '/image/' + item.logo"
          fit="cover"
        ></el-image>
        <div style="padding: 14px;">
          <span style="width: 50px">{{ item.name }}</span>
        </div>
      </el-card>
    </el-col></el-row
  >
</template>

<script>
export default {
  name: "ImageTable",
  props: {
    list: {
      type: Array, //type为Array,default为函数
      default() {
        return [];
      }
    }
  },
  data: function() {
    return {
      imageUrl: this.$store.state.orgin
    };
  }
};
</script>

<style scoped></style>
